﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserInterface.Master" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" ValidateRequest="false"
    CodeBehind="SessionDetails.aspx.cs" Inherits="spktNhom4DoAnCuoiKy.UserModules.SessionDetails" %>

<%@ Register Assembly="CurrencyTextBox" Namespace="SKP.ASP.Controls" TagPrefix="cc1" %>
<%@ Register Src="~/UCUpDownNumberic.ascx" TagPrefix="Uc1" TagName="UpDownNumberic" %>
<%@ Import Namespace="spktNhom4DoAnCuoiKy" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="css/SessionDetails.css" type="text/css" />
    <style type="text/css">
        .style16
        {
            height: 259px;
        }
        .top_right1
        {
            float: right;
            top: 0;
        }
        .popup_panel
        {
            padding: 20px;
        }
    </style>
    
     <script type = "text/javascript">
         window.onload = function () {
             var scrollY = parseInt('<%=Request.Form["scrollY"] %>');
             if (!isNaN(scrollY)) {
                 window.scrollTo(0, scrollY);
             }
         };
         window.onscroll = function () {
             var scrollY = document.body.scrollTop;
             if (scrollY == 0) {
                 if (window.pageYOffset) {
                     scrollY = window.pageYOffset;
                 }
                 else {
                     scrollY = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
                 }
             }
             if (scrollY > 0) {
                 var input = document.getElementById("scrollY");
                 if (input == null) {
                     input = document.createElement("input");
                     input.setAttribute("type", "hidden");
                     input.setAttribute("id", "scrollY");
                     input.setAttribute("name", "scrollY");
                     document.forms[0].appendChild(input);
                 }
                 input.value = scrollY;
             }
         };
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
    <asp:ScriptManager ID="ScriptManager1" runat="server" 
      >
    </asp:ScriptManager>
    <asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick" Enabled="false">
    </asp:Timer>
    <br />
    <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td width="350px" height="auto" valign="top">
                <table cellpadding="0" cellspacing="0" align="left" width="100%" style="vertical-align: top;
                    height: auto;">
                    <tr>
                        <td align="center" colspan="2">
                            <asp:Image ID="imgAnhPhien" runat="server" Height="203px" Width="223px" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#999999" class="info">
                            <asp:Label ID="Label15" runat="server" Text="<%$ Resources:String,sd_ThongTinSanPham  %>"></asp:Label>
                        </td>
                        <td class="info">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="info" colspan="2">
                            <asp:Label ID="Label16" runat="server" Text="<%$ Resources:String,sd_MoTa  %>"></asp:Label>
                            :<asp:Label ID="lblMoTa" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="info" colspan="2">
                            <asp:Label ID="Label17" runat="server" Text="<%$ Resources:String,sd_NguonGocXuatXu  %>"></asp:Label>
                            :
                            <asp:Label ID="lblNguonGoc" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="info" colspan="2">
                            <asp:Label ID="Label18" runat="server" Text="<%$ Resources:String,sd_TinhTrangSanPham  %>"></asp:Label>
                            :
                            <asp:Label ID="lblTinhTrangSanPham" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="info" colspan="2">
                            <asp:Literal ID="Literal12" runat="server" Text="Số Lượng"></asp:Literal>
                            :<asp:Label ID="lblSoLuong" runat="server" CssClass="field_content" Text="Label"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
            <td valign="top">
                <div 
                    style="  width: 100%;background: -moz-linear-gradient(top,  rgba(16,0,244,0.07) 0%, rgba(14,41,211,0.07) 100%);
                    /* ff3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(16,0,244,0.07)), color-stop(100%,rgba(14,41,211,0.07)));
                    /* chrome,safari4+ */
background: -webkit-linear-gradient(top,  rgba(16,0,244,0.07) 0%,rgba(14,41,211,0.07) 100%); /* chrome10+,safari5.1+ */
background: -o-linear-gradient(top,  rgba(16,0,244,0.07) 0%,rgba(14,41,211,0.07) 100%); /* opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(16,0,244,0.07) 0%,rgba(14,41,211,0.07) 100%); /* ie10+ */
background: linear-gradient(to bottom,  rgba(16,0,244,0.07) 0%,rgba(14,41,211,0.07) 100%); /* w3c */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#121000f4', endColorstr='#120e29d3',GradientType=0 );" 
                    align="left">
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td class="info">
                                <asp:Label ID="Label1" runat="server" Text="<%$ Resources:String, sd_TenSanPham %>"></asp:Label>
                                :<asp:Label ID="lblTenSanPham" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="info">
                                <asp:Label ID="Label2" runat="server" Text="<%$ Resources:String,sd_NhomPhien  %>"></asp:Label>
                                :
                                <asp:Label ID="lblNhomPhien" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="info">
                                <asp:Label ID="Label3" runat="server" Text="<%$ Resources:String,sd_LoaiPhien  %>"></asp:Label>
                                <asp:Label ID="lblLoaiPhien" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="info">
                                &nbsp;<asp:Label ID="Label4" runat="server" Text="<%$ Resources:String,sd_NguoiDangTin  %>"></asp:Label>
                                :
                                <asp:HyperLink ID="hlNguoiDangTin" runat="server" Font-Underline="True" NavigateUrl="#"
                                    CssClass="field_content">User</asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td class="info">
                                <asp:UpdatePanel ID="UpdatePanel6" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:Label ID="Label5" runat="server" Text="<%$ Resources:String,sd_TinhTrang  %>"></asp:Label>
                                        <asp:Label ID="lblTinhTrang" runat="server" Text="Label" CssClass="field_content"
                                            Font-Bold="True" Font-Size="Large"></asp:Label>
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="tick" />
                                    </Triggers>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <td class="info">
                                <asp:Label ID="Label23" runat="server" Text="<%$ Resources:String,sd_GiaSan  %>"></asp:Label>
                                :
                                <asp:Label ID="lblGiaSan" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="info">
                                <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:Label ID="Label6" runat="server" Text="<%$ Resources:String,sd_GiaHienTai  %>"></asp:Label>
                                        :
                                        <asp:Label ID="lblGiaHienTai" runat="server" Text="Label" CssClass="field_content"
                                            Font-Size="X-Large" ForeColor="#FF9900"></asp:Label>
                                        <asp:HyperLink ID="hlDoiTien" runat="server" Font-Underline="True" NavigateUrl="#">Đổi tiền</asp:HyperLink>
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="btnDatGia" EventName="click" />
                                        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="tick" />
                                    </Triggers>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <td class="info">
                                <asp:Label ID="Label7" runat="server" Text="<%$ Resources:String,sd_GiaTran  %>"></asp:Label>
                                :
                                <asp:Label ID="lblGiaTran" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                                <asp:HyperLink ID="HyperLink9" runat="server" Font-Underline="True" NavigateUrl="#">Đổi tiền</asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td class="info">
                                <asp:Label ID="Label8" runat="server" Text="<%$ Resources:String,sd_BuocGia  %>"></asp:Label>
                                <asp:Label ID="lblBuocGia" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                                <asp:HyperLink ID="HyperLink10" runat="server" Font-Underline="True" NavigateUrl="#">Đổi tiền</asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td class="info">
                                <asp:Literal ID="Label9" runat="server" Text="<%$ Resources:String,sd_ThoiGianConLai  %>"></asp:Literal>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:Label ID="lblThoiGianConLai" runat="server" Text="Label" CssClass="field_content"
                                            Font-Bold="True" Font-Size="X-Large" ForeColor="Red"></asp:Label>
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="tick" />
                                    </Triggers>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <td class="info">
                                <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:Literal ID="Label10" runat="server" Text="<%$ Resources:String,sd_ThoiGianKetThuc  %>"></asp:Literal>
                                        <asp:Label ID="lblThoiGianKetThuc" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="tick" />
                                    </Triggers>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                    </table>
                    <asp:UpdatePanel ID="UpdatePanel7" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <table cellpadding="0" cellspacing="0" class="style12">
                                <tr>
                                    <td class="info">
                                        <asp:Label ID="Label11" runat="server" Text="<%$ Resources:String,sd_LichSuDauGia  %>"></asp:Label>
                                        <asp:LinkButton ID="hlLichSuDauGia" runat="server" 
                                            onclick="hlLichSuDauGia_Click"></asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="info">
                                        <asp:Literal ID="lNguoiThang" runat="server" Text="<%$ Resources:String,sd_NguoiRaGiaMoiNhat %>"></asp:Literal>
                                        <asp:HyperLink ID="hlNguoiRaGiaMoiNhat" runat="server" NavigateUrl="#">
                                        </asp:HyperLink>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnDatGia" EventName="click" />
                            <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="tick" />
                        </Triggers>
                    </asp:UpdatePanel>
                    <table cellpadding="0" cellspacing="0" class="style12">
                        <tr>
                            <td class="info">
                            
                                
                             
                                    
                                <asp:Panel ID="PnNhap" runat="server" Height="35px">
                                    <asp:Label ID="Label12" runat="server" Text="<%$ Resources:String,sd_GiaDau  %>"></asp:Label>
                                    <asp:TextBox ID="txtGiaDau" runat="server" Height="30px" OnTextChanged="txtGiaDau_TextChanged"
                                        Font-Size="Large" ForeColor="Blue" AutoPostBack="True"  ></asp:TextBox>
                                    <ajaxToolkit:NumericUpDownExtender ID="txtGiaDau_NumericUpDownExtender" runat="server"
                                        Enabled="True" Maximum="1.7976931348623157E+308" Minimum="0"
                                        RefValues="" ServiceDownMethod="" ServiceDownPath="" ServiceUpMethod="" Tag=""
                                        TargetButtonDownID="" TargetButtonUpID="" TargetControlID="txtGiaDau" Width="150">
                                    </ajaxToolkit:NumericUpDownExtender>
                                    <asp:Button ID="btnDatGia" runat="server" Height="34px" 
                                        OnClick="btnDatGia_Click" Text="<%$ Resources:String,sd_DatGia  %>" 
                                        Width="118px" />
                                    <ajaxToolkit:ConfirmButtonExtender ID="btnDatGia_ConfirmButtonExtender" 
                                        runat="server" ConfirmText="Bạn có chắc không?" Enabled="True" 
                                        TargetControlID="btnDatGia">
                                    </ajaxToolkit:ConfirmButtonExtender>
                                   
                                </asp:Panel>
                                 <asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional" 
                                    ChildrenAsTriggers="False" >
                                    <ContentTemplate>
                            
                                        <asp:Panel ID="PnInfo" runat="server">
                                            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:String,sd_ThongBaoGiaDat  %>">"></asp:Literal>
                                            <asp:Label ID="lblFomatedCurrency" runat="server" Font-Bold="True" Font-Size="Large"
                                                ForeColor="#FF9900" Text="0.0"></asp:Label>
                                        </asp:Panel>
                                        <asp:Panel ID="PnThongBao" runat="server">
                                            <asp:Label ID="lblThongBao" runat="server" Font-Size="Medium"></asp:Label>
                                        </asp:Panel>
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="btnDatGia" EventName="Click" />
                                        <asp:AsyncPostBackTrigger ControlID="txtGiaDau" EventName="textchanged" />
                                    </Triggers>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                    </table>
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <table cellpadding="0" cellspacing="0" class="style12">
                                <tr>
                                    <td class="info">
                                        <asp:Label ID="Label13" runat="server" Text="<%$ Resources:String,sd_GiaoHang  %>"></asp:Label>
                                        :
                                        <asp:Label ID="lblGiaoHang" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                                        <asp:HyperLink ID="HyperLink6" runat="server">HyperLink</asp:HyperLink>
                                        info
                                    </td>
                                </tr>
                                <tr>
                                    <td class="info">
                                        <asp:Label ID="Label14" runat="server" Text="<%$ Resources:String,sd_GiaoDen  %>"></asp:Label>
                                        <asp:Label ID="lblGiaoDen" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="ddlQuocGia" EventName="selectedindexchanged" />
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2" height="30px">
                <asp:Panel ID="PnChiTietDauGia" runat="server" BackColor="White" Height="350px" Width="700px"
                    BorderColor="Silver" BorderStyle="Solid" BorderWidth="5px" CssClass="popup_panel">
                    <asp:ImageButton ID="ibDong" runat="server" CssClass="top_right1" Height="25px" ImageUrl="~/images/close.jpg"
                        Width="25px" />
                    <h3>
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:String,sd_Top10DauGia  %>"></asp:Literal>  
                        <%= Session.getCurrentAuctionSession()!=null?Session.getCurrentAuctionSession().MaPhien : "" %></h3>
                    <asp:UpdatePanel ID="UpdatePanel8" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:GridView ID="gvChiTietDauGia" runat="server" AutoGenerateColumns="False" HorizontalAlign="Left"
                                OnDataBound="GridView1_DataBound" OnRowCreated="GridView1_RowCreated" Width="700px">
                                <AlternatingRowStyle BackColor="#66CCFF" />
                                <Columns>
                                    <asp:TemplateField HeaderText="<%$ Resources:String,sd_STT  %>">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="STT" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="NguoiRaGia" HeaderText="<%$ Resources:String,sd_NguoiRaGia  %>" />
                                    <asp:BoundField DataField="ThoiGianRaGia" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}"
                                        HeaderText="<%$ Resources:String,sd_ThoiGianRaGia  %>" HtmlEncode="false" />
                                    <asp:BoundField DataField="GiaDaRa" HeaderText="<%$ Resources:String,sd_GiaDaRa  %>" />
                                </Columns>
                                <HeaderStyle BackColor="Blue" ForeColor="White" />
                            </asp:GridView>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnDatGia" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                        </Triggers>
                    </asp:UpdatePanel>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td colspan="2" height="150" style="vertical-align: top; background: -moz-linear-gradient(top,  rgba(16,0,244,0.07) 0%, rgba(14,41,211,0.07) 100%);
                /* ff3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(16,0,244,0.07)), color-stop(100%,rgba(14,41,211,0.07)));
                /* chrome,safari4+ */
background: -webkit-linear-gradient(top,  rgba(16,0,244,0.07) 0%,rgba(14,41,211,0.07) 100%);
                /* chrome10+,safari5.1+ */
background: -o-linear-gradient(top,  rgba(16,0,244,0.07) 0%,rgba(14,41,211,0.07) 100%); /* opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(16,0,244,0.07) 0%,rgba(14,41,211,0.07) 100%); /* ie10+ */
background: linear-gradient(to bottom,  rgba(16,0,244,0.07) 0%,rgba(14,41,211,0.07) 100%); /* w3c */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#121000f4', endColorstr='#120e29d3',GradientType=0 );
                /* ie6-9 */">
                <table cellpadding="0" cellspacing="5" class="style12">
                    <tr>
                        <td colspan="2" style="font-family: arial, Helvetica, sans-serif; font-size: large;
                            font-weight: bold; color: #0000FF; vertical-align: middle; text-align: center">
                            <asp:Label ID="Label19" runat="server" Text="<%$ Resources:String,sd_ThongTinGiaoHang  %>"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-left: 10px; width: 150px;">
                            <asp:Literal ID="Literal11" runat="server" Text="Hình thức Giao Hàng"></asp:Literal>
                        </td>
                        <td align="left">
                            <asp:RadioButtonList ID="rblHinhThucGiaoHang" runat="server">
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-left: 10px; width: 150px;">
                            <asp:Label ID="Label20" runat="server" Text="<%$ Resources:String,sd_ChuyenDen  %>"></asp:Label>:
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlQuocGia" runat="server" Height="25px" Width="199px" AutoPostBack="True"
                                OnSelectedIndexChanged="ddlQuocGia_SelectedIndexChanged" DataMember="MaQuocGia"
                                DataValueField="TenQuocGia">
                            </asp:DropDownList>
                            <asp:Button ID="btnChuyen" runat="server" Height="29px" Text="<%$ Resources:String,sd_XacNhan  %>"
                                Width="169px" OnClick="btnChuyen_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-left: 10px; width: 150px;">
                            <asp:Label ID="Label21" runat="server" Text="<%$ Resources:String,sd_ChiPhiChuyen  %>"></asp:Label>:
                        </td>
                        <td align="left" height="30">
                            <asp:Label ID="PhanTramPhiVanChuyen" runat="server" ForeColor="#333333" Font-Bold="True"
                                Font-Size="13pt"></asp:Label>
                                 <asp:Button ID="btnTemp1" runat="server" Text="Button" style="display:none" />
                                    <ajaxToolkit:ModalPopupExtender ID="btnTemp1_ModalPopupExtender" runat="server" 
                                        CancelControlID="ibDong" DynamicServicePath="" Enabled="True" 
                                        PopupControlID="PnChiTietDauGia" TargetControlID="btnTemp1">
                                    </ajaxToolkit:ModalPopupExtender>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br />
    
</asp:Content>
